﻿package com.tudou.home.newskin.buttons
{
    import com.tudou.skin.*;
    import com.tudou.skin.common.button.*;

    public class VolumeButton extends BaseButton
    {

        public function VolumeButton()
        {
            addStateButton(new VolumeIconMC());
            addStateButton(new VolumeIconNoneMC());
            this.clickContainer = true;
            this.activeIndex = 0;
            return;
        }// end function

        public function get isOn() : Boolean
        {
            return this.activeIndex == 0;
        }// end function

        public function set isOn(param1:Boolean) : void
        {
            this.activeIndex = param1 ? (0) : (1);
            return;
        }// end function

    }
}
